<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>

    <title>Fly-控制台</title>
    <meta name="description" content="Fly-blog 李难难的个人博客">
    <meta name="keywords" content="blog,Fly,linn">
    <meta name="author" content="李难难">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="${rc.contextPath}/resources/images/title.ico" type="image/x-icon"/>

    <%@include file="../common/include.jsp" %>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all" />
    <link rel="stylesheet" type="text/css" href="${rc.contextPath}/css/admin.css" />
    <script type="text/javascript" src="${rc.contextPath}/js/admin/index.js"></script>

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">
            <i class="layui-icon" style="font-size: 30px;">&#xe609;</i> Fly Blog
        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul id="headmenu" class="layui-nav layui-layout-left">
            <li class="layui-nav-item">
                <i id="isshow" class="layui-icon layui-icon-shrink-right" style="font-size: 30px; color: #1E9FFF;"></i>
            </li>
        </ul>
        <ul class="layui-nav" style="margin-left:500px">
            <li class="layui-nav-item">
                <div >
                    <div id="tp-weather-widget"></div>
                    <script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
                    <script>tpwidget("init", {
                        "flavor": "slim",
                        "location": "WX4FBXXFKE4F",
                        "geolocation": "enabled",
                        "language": "zh-chs",
                        "unit": "c",
                        "theme": "chameleon",
                        "container": "tp-weather-widget",
                        "bubble": "disabled",
                        "alarmType": "badge",
                        "color": "#FFFFFF",
                        "uid": "U9EC08A15F",
                        "hash": "039da28f5581f4bcb5c799fb4cdfb673"
                    });
                    tpwidget("show");</script>
                </div>
            </li>
        </ul>

        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="${user.avatar}" class="layui-nav-img">
                    ${user.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a data-id="jbzl" data-title="基本资料" data-url="admin/toUserSet" href="javascript:;">基本资料</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="admin/logout">退出</a></li>
        </ul>
    </div>

    <div id="mainmenu" class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="treenav" id="leftNavTree">
                <c:forEach var="menuItem" items="${menuList}" varStatus="status">
                    <c:if test="${menuItem.parentId == 0}">
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;" title="${menuItem.name}">
                                <i class="layui-icon">&#xe643;</i> ${menuItem.name}
                            </a>
                            <dl class="layui-nav-child">
                            <c:forEach var="subMenuItem" items="${menuList}" varStatus="subStatus">
                                <c:if test="${subMenuItem.parentId == menuItem.menuId}">
                                    <dd title="${subMenuItem.name}">
                                        <a data-id="${subMenuItem.menuId}" data-title="${subMenuItem.name}" data-url="${subMenuItem.url}" href="javascript:;">
                                            <i class="layui-icon">&#xe63f;</i> ${subMenuItem.name}
                                        </a>
                                    </dd>
                                </c:if>
                            </c:forEach>
                            </dl>
                        </li>
                    </c:if>
                </c:forEach>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <!--<div style="padding: 15px;">内容主体区域</div>-->
        <div class="layui-tab" lay-filter="tab" lay-allowclose="true">
            <ul class="layui-tab-title"></ul>
            <div class="layui-tab-content"></div>
        </div>
    </div>

    <div class="layui-footer" style="text-align:center">
        哎呦？你发现我喽！！
        <a href="" target="_blank">© linn.com - lnn</a>
    </div>
    <ul class="rightmenu">
        <li data-type="closethis">关闭当前</li>
        <li data-type="closeother">关闭其他</li>
        <li data-type="closeall">关闭所有</li>
    </ul>
</div>
<input type="hidden" id="webApp" value="${rc.contextPath}"/>
</body>
</html>
